package com.godyao.mall.pms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.godyao.mall.core.utils.PageUtils;
import com.godyao.mall.pms.entity.AttrEntity;
import com.godyao.mall.pms.vo.request.AttrRequestVo;
import com.godyao.mall.pms.vo.response.AttrResponseVo;

import java.util.Map;

/**
 * 商品属性
 *
 * @author godyao
 * @email godyao0801@qq.com
 * @date 2022-04-19 14:42:40
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(AttrRequestVo attr);

    PageUtils queryDetail(String attrType, Long categoryId, Map<String, Object> params);

    AttrResponseVo getDetailById(Long attrId);

    void updateAttr(AttrRequestVo attr);
}

